#include <bits/stdc++.h>
using namespace std;
#define FILENAME "duel"
const int N=1e5+5;

bool __stb;

int n,ans;
int a[N];

bool __enb;

int main() {
    fprintf(stderr,"%.2lf MB\n",(&__stb-&__enb)/1024.0/1024.0);
    freopen(FILENAME ".in","r",stdin);
    freopen(FILENAME ".out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++) scanf("%d",a+i);
    ans=n;
    sort(a+1,a+1+n);
    for(int l=1,r=2;r<=n;) {
        if(a[l]<a[r]) {
            ans--;
            l++;
            r++;
        }
        while(a[l]>=a[r]&&r<=n) r++;
        if(r>n) break;
    }
    printf("%d\n",ans);
    return 0;
}

//by Ke9_qux
